]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Add missing gtk_widget_get_allocation()
authorOwen W. Taylor <otaylor@fishsoup.net>
Mon, 10 May 2010 18:28:07 +0000 (14:28 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Mon, 10 May 2010 18:29:44 +0000 (14:29 -0400)
In the change from widget->allocation to gtk_widget_get_allocation(),
one addition of gtk_widget_get_allocation() was missed. Add it.

src/tray/na-tray-child.c

index be0a616a4b9f4276b1a766fe163d193ae8a1c48a..30f2399ceefa2b2e1a13c53a1934bd1ee1a72598 100644 (file)
@@ -399,7 +399,6 @@ na_tray_child_set_composited (NaTrayChild *child,
 void
 na_tray_child_force_redraw (NaTrayChild *child)
 {
-  GtkAllocation allocation;
   GtkWidget *widget = GTK_WIDGET (child);
 
   if (gtk_widget_get_mapped (GTK_WIDGET (child)) && child->parent_relative_bg)
@@ -410,8 +409,11 @@ na_tray_child_force_redraw (NaTrayChild *child)
        * the redraw. It should be ok for GtkStatusIcon or EggTrayIcon.
        */
       Display *xdisplay = GDK_DISPLAY_XDISPLAY (gtk_widget_get_display (widget));
+      GtkAllocation allocation;
       XEvent xev;
 
+      gtk_widget_get_allocation (widget, &allocation);
+
       xev.xexpose.type = Expose;
       xev.xexpose.window = GDK_WINDOW_XWINDOW (gtk_socket_get_plug_window (GTK_SOCKET (child)));
       xev.xexpose.x = 0;